using Google.ProtocolBuffers;
using Google.ProtocolBuffers.Collections;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class VerifyUserRequest : GeneratedMessageLite<VerifyUserRequest, VerifyUserRequest.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<VerifyUserRequest, VerifyUserRequest.Builder>
		{
			private bool resultIsReadOnly;
			private VerifyUserRequest result;
			protected override VerifyUserRequest.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override VerifyUserRequest MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override VerifyUserRequest DefaultInstanceForType
			{
				get
				{
					return VerifyUserRequest.DefaultInstance;
				}
			}
			public BaseRequest BaseRequest
			{
				get
				{
					return this.result.BaseRequest;
				}
				set
				{
					this.SetBaseRequest(value);
				}
			}
			public uint Opcode
			{
				get
				{
					return this.result.Opcode;
				}
				set
				{
					this.SetOpcode(value);
				}
			}
			public uint VerifyUserListSize
			{
				get
				{
					return this.result.VerifyUserListSize;
				}
				set
				{
					this.SetVerifyUserListSize(value);
				}
			}
			public IPopsicleList<VerifyUser> VerifyUserListList
			{
				get
				{
					return this.PrepareBuilder().verifyUserList_;
				}
			}
			public int VerifyUserListCount
			{
				get
				{
					return this.result.VerifyUserListCount;
				}
			}
			public string VerifyContent
			{
				get
				{
					return this.result.VerifyContent;
				}
				set
				{
					this.SetVerifyContent(value);
				}
			}
			public uint SceneListNum
			{
				get
				{
					return this.result.SceneListNum;
				}
				set
				{
					this.SetSceneListNum(value);
				}
			}
			public IPopsicleList<uint> SceneListList
			{
				get
				{
					return this.PrepareBuilder().sceneList_;
				}
			}
			public int SceneListCount
			{
				get
				{
					return this.result.SceneListCount;
				}
			}
			public Builder()
			{
				this.result = VerifyUserRequest.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(VerifyUserRequest cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private VerifyUserRequest PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					VerifyUserRequest other = this.result;
					this.result = new VerifyUserRequest();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override VerifyUserRequest.Builder Clear()
			{
				this.result = VerifyUserRequest.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override VerifyUserRequest.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new VerifyUserRequest.Builder(this.result);
				}
				return new VerifyUserRequest.Builder().MergeFrom(this.result);
			}
			public override VerifyUserRequest BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override VerifyUserRequest.Builder MergeFrom(IMessageLite other)
			{
				if (other is VerifyUserRequest)
				{
					return this.MergeFrom((VerifyUserRequest)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override VerifyUserRequest.Builder MergeFrom(VerifyUserRequest other)
			{
				return this;
			}
			public override VerifyUserRequest.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override VerifyUserRequest.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(VerifyUserRequest._verifyUserRequestFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = VerifyUserRequest._verifyUserRequestFieldTags[num2];
					}
					uint num3 = num;
					if (num3 <= 24u)
					{
						if (num3 <= 10u)
						{
							if (num3 == 0u)
							{
								throw InvalidProtocolBufferException.InvalidTag();
							}
							if (num3 == 10u)
							{
								BaseRequest.Builder builder = BaseRequest.CreateBuilder();
								if (this.result.hasBaseRequest)
								{
									builder.MergeFrom(this.BaseRequest);
								}
								input.ReadMessage(builder, extensionRegistry);
								this.BaseRequest = builder.BuildPartial();
								continue;
							}
						}
						else
						{
							if (num3 == 16u)
							{
								this.result.hasOpcode = input.ReadUInt32(ref this.result.opcode_);
								continue;
							}
							if (num3 == 24u)
							{
								this.result.hasVerifyUserListSize = input.ReadUInt32(ref this.result.verifyUserListSize_);
								continue;
							}
						}
					}
					else
					{
						if (num3 <= 42u)
						{
							if (num3 == 34u)
							{
								input.ReadMessageArray<VerifyUser>(num, text, this.result.verifyUserList_, VerifyUser.DefaultInstance, extensionRegistry);
								continue;
							}
							if (num3 == 42u)
							{
								this.result.hasVerifyContent = input.ReadString(ref this.result.verifyContent_);
								continue;
							}
						}
						else
						{
							if (num3 == 48u)
							{
								this.result.hasSceneListNum = input.ReadUInt32(ref this.result.sceneListNum_);
								continue;
							}
							switch (num3)
							{
							case 56u:
							case 58u:
								input.ReadUInt32Array(num, text, this.result.sceneList_);
								continue;
							}
						}
					}
					if (WireFormat.IsEndGroupTag(num))
					{
						return this;
					}
					this.ParseUnknownField(input, extensionRegistry, num, text);
				}
				return this;
			}
			public VerifyUserRequest.Builder SetBaseRequest(BaseRequest value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasBaseRequest = true;
				this.result.baseRequest_ = value;
				return this;
			}
			public VerifyUserRequest.Builder SetBaseRequest(BaseRequest.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasBaseRequest = true;
				this.result.baseRequest_ = builderForValue.Build();
				return this;
			}
			public VerifyUserRequest.Builder MergeBaseRequest(BaseRequest value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasBaseRequest && this.result.baseRequest_ != BaseRequest.DefaultInstance)
				{
					this.result.baseRequest_ = BaseRequest.CreateBuilder(this.result.baseRequest_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.baseRequest_ = value;
				}
				this.result.hasBaseRequest = true;
				return this;
			}
			public VerifyUserRequest.Builder ClearBaseRequest()
			{
				this.PrepareBuilder();
				this.result.hasBaseRequest = false;
				this.result.baseRequest_ = null;
				return this;
			}
			public VerifyUserRequest.Builder SetOpcode(uint value)
			{
				this.PrepareBuilder();
				this.result.hasOpcode = true;
				this.result.opcode_ = value;
				return this;
			}
			public VerifyUserRequest.Builder ClearOpcode()
			{
				this.PrepareBuilder();
				this.result.hasOpcode = false;
				this.result.opcode_ = 0u;
				return this;
			}
			public VerifyUserRequest.Builder SetVerifyUserListSize(uint value)
			{
				this.PrepareBuilder();
				this.result.hasVerifyUserListSize = true;
				this.result.verifyUserListSize_ = value;
				return this;
			}
			public VerifyUserRequest.Builder ClearVerifyUserListSize()
			{
				this.PrepareBuilder();
				this.result.hasVerifyUserListSize = false;
				this.result.verifyUserListSize_ = 0u;
				return this;
			}
			public VerifyUser GetVerifyUserList(int index)
			{
				return this.result.GetVerifyUserList(index);
			}
			public VerifyUserRequest.Builder SetVerifyUserList(int index, VerifyUser value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.verifyUserList_[index] = value;
				return this;
			}
			public VerifyUserRequest.Builder SetVerifyUserList(int index, VerifyUser.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.verifyUserList_[index] = builderForValue.Build();
				return this;
			}
			public VerifyUserRequest.Builder AddVerifyUserList(VerifyUser value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.verifyUserList_.Add(value);
				return this;
			}
			public VerifyUserRequest.Builder AddVerifyUserList(VerifyUser.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.verifyUserList_.Add(builderForValue.Build());
				return this;
			}
			public VerifyUserRequest.Builder AddRangeVerifyUserList(IEnumerable<VerifyUser> values)
			{
				this.PrepareBuilder();
				this.result.verifyUserList_.Add(values);
				return this;
			}
			public VerifyUserRequest.Builder ClearVerifyUserList()
			{
				this.PrepareBuilder();
				this.result.verifyUserList_.Clear();
				return this;
			}
			public VerifyUserRequest.Builder SetVerifyContent(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasVerifyContent = true;
				this.result.verifyContent_ = value;
				return this;
			}
			public VerifyUserRequest.Builder ClearVerifyContent()
			{
				this.PrepareBuilder();
				this.result.hasVerifyContent = false;
				this.result.verifyContent_ = "";
				return this;
			}
			public VerifyUserRequest.Builder SetSceneListNum(uint value)
			{
				this.PrepareBuilder();
				this.result.hasSceneListNum = true;
				this.result.sceneListNum_ = value;
				return this;
			}
			public VerifyUserRequest.Builder ClearSceneListNum()
			{
				this.PrepareBuilder();
				this.result.hasSceneListNum = false;
				this.result.sceneListNum_ = 0u;
				return this;
			}
			public uint GetSceneList(int index)
			{
				return this.result.GetSceneList(index);
			}
			public VerifyUserRequest.Builder SetSceneList(int index, uint value)
			{
				this.PrepareBuilder();
				this.result.sceneList_[index] = value;
				return this;
			}
			public VerifyUserRequest.Builder AddSceneList(uint value)
			{
				this.PrepareBuilder();
				this.result.sceneList_.Add(value);
				return this;
			}
			public VerifyUserRequest.Builder AddRangeSceneList(IEnumerable<uint> values)
			{
				this.PrepareBuilder();
				this.result.sceneList_.Add(values);
				return this;
			}
			public VerifyUserRequest.Builder ClearSceneList()
			{
				this.PrepareBuilder();
				this.result.sceneList_.Clear();
				return this;
			}
		}
		public const int BaseRequestFieldNumber = 1;
		public const int OpcodeFieldNumber = 2;
		public const int VerifyUserListSizeFieldNumber = 3;
		public const int VerifyUserListFieldNumber = 4;
		public const int VerifyContentFieldNumber = 5;
		public const int SceneListNumFieldNumber = 6;
		public const int SceneListFieldNumber = 7;
		private static readonly VerifyUserRequest defaultInstance;
		private static readonly string[] _verifyUserRequestFieldNames;
		private static readonly uint[] _verifyUserRequestFieldTags;
		private bool hasBaseRequest;
		private BaseRequest baseRequest_;
		private bool hasOpcode;
		private uint opcode_;
		private bool hasVerifyUserListSize;
		private uint verifyUserListSize_;
		private PopsicleList<VerifyUser> verifyUserList_ = new PopsicleList<VerifyUser>();
		private bool hasVerifyContent;
		private string verifyContent_ = "";
		private bool hasSceneListNum;
		private uint sceneListNum_;
		private int sceneListMemoizedSerializedSize;
		private PopsicleList<uint> sceneList_ = new PopsicleList<uint>();
		private int memoizedSerializedSize = -1;
		public static VerifyUserRequest DefaultInstance
		{
			get
			{
				return VerifyUserRequest.defaultInstance;
			}
		}
		public override VerifyUserRequest DefaultInstanceForType
		{
			get
			{
				return VerifyUserRequest.DefaultInstance;
			}
		}
		protected override VerifyUserRequest ThisMessage
		{
			get
			{
				return this;
			}
		}
		public BaseRequest BaseRequest
		{
			get
			{
				return this.baseRequest_ ?? BaseRequest.DefaultInstance;
			}
		}
		public uint Opcode
		{
			get
			{
				return this.opcode_;
			}
		}
		public uint VerifyUserListSize
		{
			get
			{
				return this.verifyUserListSize_;
			}
		}
		public IList<VerifyUser> VerifyUserListList
		{
			get
			{
				return this.verifyUserList_;
			}
		}
		public int VerifyUserListCount
		{
			get
			{
				return this.verifyUserList_.Count;
			}
		}
		public string VerifyContent
		{
			get
			{
				return this.verifyContent_;
			}
		}
		public uint SceneListNum
		{
			get
			{
				return this.sceneListNum_;
			}
		}
		public IList<uint> SceneListList
		{
			get
			{
				return Lists.AsReadOnly<uint>(this.sceneList_);
			}
		}
		public int SceneListCount
		{
			get
			{
				return this.sceneList_.Count;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return this.hasBaseRequest && this.hasOpcode && this.hasVerifyUserListSize && this.BaseRequest.IsInitialized;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasBaseRequest)
				{
					num += CodedOutputStream.ComputeMessageSize(1, this.BaseRequest);
				}
				if (this.hasOpcode)
				{
					num += CodedOutputStream.ComputeUInt32Size(2, this.Opcode);
				}
				if (this.hasVerifyUserListSize)
				{
					num += CodedOutputStream.ComputeUInt32Size(3, this.VerifyUserListSize);
				}
				using (IEnumerator<VerifyUser> enumerator = this.VerifyUserListList.GetEnumerator())
				{
					while (enumerator.MoveNext())
					{
						VerifyUser current = enumerator.get_Current();
						num += CodedOutputStream.ComputeMessageSize(4, current);
					}
				}
				if (this.hasVerifyContent)
				{
					num += CodedOutputStream.ComputeStringSize(5, this.VerifyContent);
				}
				if (this.hasSceneListNum)
				{
					num += CodedOutputStream.ComputeUInt32Size(6, this.SceneListNum);
				}
				int num2 = 0;
				using (IEnumerator<uint> enumerator2 = this.SceneListList.GetEnumerator())
				{
					while (enumerator2.MoveNext())
					{
						uint current2 = enumerator2.get_Current();
						num2 += CodedOutputStream.ComputeUInt32SizeNoTag(current2);
					}
				}
				num += num2;
				if (this.sceneList_.Count != 0)
				{
					num += 1 + CodedOutputStream.ComputeInt32SizeNoTag(num2);
				}
				this.sceneListMemoizedSerializedSize = num2;
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private VerifyUserRequest()
		{
		}
		public VerifyUser GetVerifyUserList(int index)
		{
			return this.verifyUserList_[index];
		}
		public uint GetSceneList(int index)
		{
			return this.sceneList_[index];
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] verifyUserRequestFieldNames = VerifyUserRequest._verifyUserRequestFieldNames;
			if (this.hasBaseRequest)
			{
				output.WriteMessage(1, verifyUserRequestFieldNames[0], this.BaseRequest);
			}
			if (this.hasOpcode)
			{
				output.WriteUInt32(2, verifyUserRequestFieldNames[1], this.Opcode);
			}
			if (this.hasVerifyUserListSize)
			{
				output.WriteUInt32(3, verifyUserRequestFieldNames[6], this.VerifyUserListSize);
			}
			if (this.verifyUserList_.Count > 0)
			{
				output.WriteMessageArray<VerifyUser>(4, verifyUserRequestFieldNames[5], this.verifyUserList_);
			}
			if (this.hasVerifyContent)
			{
				output.WriteString(5, verifyUserRequestFieldNames[4], this.VerifyContent);
			}
			if (this.hasSceneListNum)
			{
				output.WriteUInt32(6, verifyUserRequestFieldNames[3], this.SceneListNum);
			}
			if (this.sceneList_.Count > 0)
			{
				output.WritePackedUInt32Array(7, verifyUserRequestFieldNames[2], this.sceneListMemoizedSerializedSize, this.sceneList_);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasBaseRequest)
			{
				num ^= this.baseRequest_.GetHashCode();
			}
			if (this.hasOpcode)
			{
				num ^= this.opcode_.GetHashCode();
			}
			if (this.hasVerifyUserListSize)
			{
				num ^= this.verifyUserListSize_.GetHashCode();
			}
			using (IEnumerator<VerifyUser> enumerator = this.verifyUserList_.GetEnumerator())
			{
				while (enumerator.MoveNext())
				{
					VerifyUser current = enumerator.get_Current();
					num ^= current.GetHashCode();
				}
			}
			if (this.hasVerifyContent)
			{
				num ^= this.verifyContent_.GetHashCode();
			}
			if (this.hasSceneListNum)
			{
				num ^= this.sceneListNum_.GetHashCode();
			}
			using (IEnumerator<uint> enumerator2 = this.sceneList_.GetEnumerator())
			{
				while (enumerator2.MoveNext())
				{
					uint current2 = enumerator2.get_Current();
					num ^= current2.GetHashCode();
				}
			}
			return num;
		}
		public override bool Equals(object object_0)
		{
			VerifyUserRequest verifyUserRequest = object_0 as VerifyUserRequest;
			if (verifyUserRequest == null)
			{
				return false;
			}
			if (this.hasBaseRequest != verifyUserRequest.hasBaseRequest || (this.hasBaseRequest && !this.baseRequest_.Equals(verifyUserRequest.baseRequest_)))
			{
				return false;
			}
			if (this.hasOpcode != verifyUserRequest.hasOpcode || (this.hasOpcode && !this.opcode_.Equals(verifyUserRequest.opcode_)))
			{
				return false;
			}
			if (this.hasVerifyUserListSize != verifyUserRequest.hasVerifyUserListSize || (this.hasVerifyUserListSize && !this.verifyUserListSize_.Equals(verifyUserRequest.verifyUserListSize_)))
			{
				return false;
			}
			if (this.verifyUserList_.Count != verifyUserRequest.verifyUserList_.Count)
			{
				return false;
			}
			for (int i = 0; i < this.verifyUserList_.Count; i++)
			{
				if (!this.verifyUserList_[i].Equals(verifyUserRequest.verifyUserList_[i]))
				{
					return false;
				}
			}
			if (this.hasVerifyContent != verifyUserRequest.hasVerifyContent || (this.hasVerifyContent && !this.verifyContent_.Equals(verifyUserRequest.verifyContent_)))
			{
				return false;
			}
			if (this.hasSceneListNum != verifyUserRequest.hasSceneListNum || (this.hasSceneListNum && !this.sceneListNum_.Equals(verifyUserRequest.sceneListNum_)))
			{
				return false;
			}
			if (this.sceneList_.Count != verifyUserRequest.sceneList_.Count)
			{
				return false;
			}
			for (int j = 0; j < this.sceneList_.Count; j++)
			{
				if (!this.sceneList_[j].Equals(verifyUserRequest.sceneList_[j]))
				{
					return false;
				}
			}
			return true;
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<VerifyUserRequest, VerifyUserRequest.Builder>.PrintField("BaseRequest", this.hasBaseRequest, this.baseRequest_, writer);
			GeneratedMessageLite<VerifyUserRequest, VerifyUserRequest.Builder>.PrintField("Opcode", this.hasOpcode, this.opcode_, writer);
			GeneratedMessageLite<VerifyUserRequest, VerifyUserRequest.Builder>.PrintField("VerifyUserListSize", this.hasVerifyUserListSize, this.verifyUserListSize_, writer);
			GeneratedMessageLite<VerifyUserRequest, VerifyUserRequest.Builder>.PrintField<VerifyUser>("VerifyUserList", this.verifyUserList_, writer);
			GeneratedMessageLite<VerifyUserRequest, VerifyUserRequest.Builder>.PrintField("VerifyContent", this.hasVerifyContent, this.verifyContent_, writer);
			GeneratedMessageLite<VerifyUserRequest, VerifyUserRequest.Builder>.PrintField("SceneListNum", this.hasSceneListNum, this.sceneListNum_, writer);
			GeneratedMessageLite<VerifyUserRequest, VerifyUserRequest.Builder>.PrintField<uint>("SceneList", this.sceneList_, writer);
		}
		public static VerifyUserRequest ParseFrom(byte[] data)
		{
			return VerifyUserRequest.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private VerifyUserRequest MakeReadOnly()
		{
			this.verifyUserList_.MakeReadOnly();
			this.sceneList_.MakeReadOnly();
			return this;
		}
		public static VerifyUserRequest.Builder CreateBuilder()
		{
			return new VerifyUserRequest.Builder();
		}
		public override VerifyUserRequest.Builder ToBuilder()
		{
			return VerifyUserRequest.CreateBuilder(this);
		}
		public override VerifyUserRequest.Builder CreateBuilderForType()
		{
			return new VerifyUserRequest.Builder();
		}
		public static VerifyUserRequest.Builder CreateBuilder(VerifyUserRequest prototype)
		{
			return new VerifyUserRequest.Builder(prototype);
		}
		static VerifyUserRequest()
		{
			VerifyUserRequest.defaultInstance = new VerifyUserRequest().MakeReadOnly();
			VerifyUserRequest._verifyUserRequestFieldNames = new string[]
			{
				"BaseRequest",
				"Opcode",
				"SceneList",
				"SceneListNum",
				"VerifyContent",
				"VerifyUserList",
				"VerifyUserListSize"
			};
			VerifyUserRequest._verifyUserRequestFieldTags = new uint[]
			{
				10u,
				16u,
				58u,
				48u,
				42u,
				34u,
				24u
			};
			object.ReferenceEquals(micromsg.Proto.VerifyUserRequest.Descriptor, null);
		}
	}
}
